import request from '@/utils/request'

// 分页查询评论列表
export const getCommentPage = (params) => {
  return request({
    url: '/comment/page',
    method: 'get',
    params
  })
}

// 添加评论
export const addComment = (data) => {
  return request({
    url: '/comment/addComment',
    method: 'post',
    data
  })
}

// 删除评论
export const deleteComment = (id) => {
  return request({
    url: `/comment/${id}`,
    method: 'delete'
  })
}
